<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>自增减运算</title>
</head>
<body>
    <!-- <script>
        var a = 123

        // a++ // a+= 1
        // console.log(a);

        // a-- // a-=1
        // console.log(a);

        // ++a // a+= 1
        // console.log(a);

        --a // a-= 1
        console.log(a);
    </script> -->

    <script>
        var k = 5
        // console.log(++k + k++ + ++k + k);//28
        // console.log(k);//8

        console.log( k++ + ++k - k-- * --k  );
        console.log( k );//5
    </script>
</body>
</html>